home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
renameoneforsequence.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
823b
|
40 lines
/*
* RenameForSequence.ifx.pre
* Written by Thomas Krehbiel
*
* Rename frames into sequential numbers.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_RenameOneSeq_'
basedir = GETCLIP(base||'BaseDir')
basefile = GETCLIP(base||'BaseFile')
num = GETCLIP(base||'Count')
IF num = "" THEN num = 30
RequestFile '"Sequence Basename:"' '"'basedir'"' '"'basefile'"'
IF rc ~= 0 THEN EXIT rc
basename = result
RequestNumber '"Number of frames to create:"' num
IF rc ~= 0 THEN EXIT rc
num = result
CALL SETCLIP(base||'BaseDir', filereq.path)
CALL SETCLIP(base||'BaseFile', filereq.file)
CALL SETCLIP(base||'Base', basename)
CALL SETCLIP(base||'Count', num)
EXIT